part of _;

extension on HomePage {
  Widget view_function() {
    return Container(
      color: Color.fromARGB(255, 205, 205, 205),
      child: userModel == null
          ? YEmpty()
          : Column(
              children: [
                YSpacer(height: 50),
                Stack(
                  alignment: Alignment.center,
                  children: [
                    YImageCorner(45, 45, userModel!.avatar, 5),
                    YIM.userManager.isLogin() ? YEmpty() : YCircularProgress(size: 25),
                  ],
                ),
                YExpanded(),
                YButton(
                  width: 40,
                  height: 40,
                  child: Icon(Icons.menu_rounded, color: Colors.grey.shade600, size: 30),
                  onTap: () => openWindow(WindowType.Setting, size: Size(500, 600)),
                ),
                YSpacer(height: 10),
              ],
            ),
    );
  }
}
